<?php

namespace app\index\controller;

use app\BaseController;
use app\IndexBaseController;
use think\facade\Db;
use think\facade\fetch;
use think\App;
use think\facade\View;

class Product extends IndexBaseController
{
    //继承
    public function __construct(App $app)
    {
        parent::__construct($app);
    }

    public function index()
    {
        return View::fetch('index');
    }

    public function details()
    {
        return View::fetch("details");
    }
	
	public function test()
	{
	    $this->getUserInfo();
        $this->_token;
//        var_dump($this->_token);
		$goodslists = Db::name('goods')->where(['deleted'=>0])->select()->toArray();
		return $this->success($goodslists);
	}

}
